package com.wyh.service.serviceImpl.gfiveImpl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wyh.domain.po.feemanagementpo.Organization;
import com.wyh.domain.po.gfive.Organizations;
import com.wyh.mapper.gfivemapper.OrganizationMapper;
import com.wyh.service.gfive.OrganizationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class OrganizationImpl extends ServiceImpl<OrganizationMapper, Organizations>
    implements OrganizationService {
    @Autowired
    OrganizationMapper organizationMapper;
    /**
     *  查询所有的组织名称
     * @return
     */
    @Override
    public List<Organizations> findOrganizations() {
        return organizationMapper.findOrganizations();
    }

    @Override
    public String findOrganizationNameById(int id) {
        return organizationMapper.findOrganizationNameById(id);
    }
}
